package com.dji.activationDemo;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class BootBroadcastReceiver extends BroadcastReceiver {
    static final String ACTION = "android.intent.action.BOOT_COMPLETED";

    @Override
    public void onReceive(Context context, Intent intent) {
        //启动app代码
        Intent autoStart = new Intent(context, ConnectionActivity.class);
        autoStart.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK);
        context.startActivity(autoStart);

    }
}